﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DeleteProduct.ascx.cs" Inherits="CMS.UserControl.DeleteProduct" %>
<h3 class="title" >Cập nhật thông tin sản phẩm</h3>
<div class="detail_prd">Thông tin chi tiết sản phẩm</div>
<asp:GridView ID="grvProduct" runat="server" Width="902px" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AllowSorting="True">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:TemplateField ItemStyle-CssClass="center">
            <ItemTemplate>
                <asp:CheckBox ID="chkSelect" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Hình ảnh">
            <ItemTemplate>
                <div class="icon_product">
                    <img src="<%#Eval("Image") %>" title="<%#Eval("Name") %>" />
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Name" HeaderText="Tên sản phẩm" />
        <asp:BoundField DataField="SectionName" HeaderText="Chuyên mục" />
        <asp:BoundField DataField="CategoryName" HeaderText="Thể loại" />
        <asp:BoundField DataField="CurrentPrice" ItemStyle-CssClass="right" HeaderText="Giá" />
        <asp:BoundField DataField="Quantity" ItemStyle-CssClass="right" HeaderText="Số lượng" />
        <asp:TemplateField HeaderText="Active" ItemStyle-CssClass="center">
            <ItemTemplate>
                <asp:ImageButton ID="btnActive" runat="server" ImageUrl='<%# Convert.ToBoolean(Eval("Enable")) ? "~/Content/images/active.png" : "~/Content/images/deactive.png" %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#CCCC99" />
    <HeaderStyle BackColor="#094794" CssClass="center" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
    <RowStyle BackColor="#F7F7DE" />
    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#FBFBF2" />
    <SortedAscendingHeaderStyle BackColor="#848384" />
    <SortedDescendingCellStyle BackColor="#EAEAD3" />
    <SortedDescendingHeaderStyle BackColor="#575357" />
</asp:GridView>
<br />
<div class="control">
    <asp:Button ID="btnDelete" runat="server" Text="Xóa" OnClick="btnDelete_Click" OnClientClick="return confirm('Xóa rồi sẽ không thể khôi phục. Bạn có chắc muốn làm điều này ?');" />
    <asp:Button ID="btnCancel" runat="server" Text="Hủy" OnClick="btnCancel_Click" />
</div>
